from datetime import datetime
from pydantic import BaseModel, Field, field_validator
from app.models.user import UserRole
import re

from app.schemas.user import JobInDB, UserInDB

class AuditInDB(BaseModel):
    id: int = Field(description="审核记录ID")
    job: JobInDB = Field(description="关联的工作信息")
    user: UserInDB = Field(description="关联的用户信息")
    audit: int = Field(description="审核状态(1:审核中 2:未通过 3:通过)")
